li = [0, 5, 65, 12, 32, 45, 98, 78, 456, 31, 12, 654]


def maopao(li):
	count = len(li)
	for a in range(0, count):
		for b in range(a + 1, count):
			if li[a] > li[b]:
				li[a], li[b] = li[b], li[a]
	return li


print maopao(li)
